
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class ConstantDefinition extends org.xteam.parser.runtime.AstNode {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getConstantDefinitionType();
	}
	
	protected Identifier name;
	protected Expression value;
	
	public ConstantDefinition(Span span, Identifier name,Expression value) {
		super(span);
		this.name = name;
		this.value = value;
	}
	
	
	public Identifier getName() {
		return name;
	}
	
	public void setName(Identifier name) {
		this.name = name;
	}
	
	public Expression getValue() {
		return value;
	}
	
	public void setValue(Expression value) {
		this.value = value;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitConstantDefinition(this);
	}
}
